import request from '@/utils/request'
// 数据字典
export function Dictionary(data) {
  return request({
    url: 'Dictionary/list',
    method: 'POST',
    data: data
  })
}

// 	获取当前时间
export function LocalDate() {
  return request({
    url: 'Base/LocalDate',
    method: 'GET'
  })
}

// 	查询列表
export function QueryPageList(data) {
  return request({
    url: 'Project/QueryPageList',
    method: 'POST',
    data: data
  })
}
// 保存
export function Save(data) {
  return request({
    url: 'Project/Save',
    method: 'POST',
    data: data
  })
}

// 	删除
export function Del(id) {
  return request({
    url: 'Project/Del',
    method: 'GET',
    params: id
  })
}

// 	根据id获取数据
export function QueryInfoByID(id) {
  return request({
    url: 'Project/QueryInfoByID',
    method: 'GET',
    params: id
  })
}

export function isCreatePro(data) {
  return request({
    url: 'Project/isCreatePro',
    method: 'GET',
    params: data,
    headers: { repeatSubmit: false, message: false }
  })
}

export function QueryPageTree(data) {
  return request({
    url: 'Project/QueryPageTree',
    method: 'POST',
    data: data
  })
}
export function isHideProColumn(data) {
  return request({
    url: 'Project/isHideProColumn',
    method: 'GET',
    params: data,
    headers: { repeatSubmit: false, message: false }
  })
}
